package com.sihai.ehr.service;

import com.sihai.core.Limit;
import com.sihai.core.LimitedList;
import com.sihai.core.Sorter;
import com.sihai.ehr.model.sys.Role;
import com.sihai.ehr.web.pojo.RolePojo;

import java.io.File;

/**
 * author: wxn
 * since: 13-2-4 Time: 上午11:29
 */
public interface RoleService {
    Role getRole(Long id) throws Exception;

    public void save(Role role) throws Exception;

    public LimitedList<RolePojo> findByTopOrganization(Long organizationId, Limit limit, Sorter sorter) throws Exception;

    public LimitedList<Role> find(Role role, Limit limit, Sorter sorter) throws Exception;

    public void delete(Long id) throws Exception;
}
